{% extends "main/site.html" %}
{% block globalconteiner %}
{% load media %}
<div id="title"><h1>Germanium</h1><h5>Homesite</h5></div>
 <div id="stream"> 
	<div id="content" class="win">
      {% block main %}
      {% endblock %}		
	 </div>
  </div>
{% endblock %}
	
{% block meta %}
<DIV id="meta">
  {% if debug_setting %}
  <div class="info">
  <p>
    {{ sql_queries|length }} Quer{{ sql_queries|pluralize:"y,ies" }}
    {% ifnotequal sql_queries|length 0 %}
    (<span style="cursor: pointer;" onclick="var s=document.getElementById('debugQueryTable').style;s.display=s.display=='none'?'':'none';this.innerHTML=this.innerHTML=='Show'?'Hide':'Show';">Show</span>)
    {% endifnotequal %}
  </p>
  <table id="debugQueryTable" style="display: none;">
    <col width="1"></col>
    <col></col>
    <col width="1"></col>
    <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">SQL</th>
      <th scope="col">Time</th>
    </tr>
    </thead>
    <tbody>
    {% for query in sql_queries %}<tr>
      <td>{{ forloop.counter }}</td>
      <td>{{ query.sql|escape }}</td>
      <td>{{ query.time }}</td>
    </tr>{% endfor %}
    </tbody>
  </table>
  </div>
  {% endif %}
  <div class="ver">
   HomeSite. Version {{ version_string }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15.09.2008
  </div> 
</DIV>
{% endblock %}	